var crypto = require('crypto');

module.exports.encrypto = function(str){
    var cipher = crypto.createCipher('aes192', 'adUec-w*YNK');  
    var enc = cipher.update(str,'utf8','hex');  
    enc += cipher.final('hex');  
    return enc;  
}

module.exports.decrypt = function(str) {  
    var decipher = crypto.createDecipher('aes192', 'adUec-w*YNK');  
    var dec = decipher.update(str,'hex','utf8');  
    dec += decipher.final('utf8');  
    return dec;  
}  